<?php
/*
* Kusht Mud.
* ----
* The MIT License
* Copyright (c) 2010 Andrew Tutt
* ----
*/

/* helperFunctions
*
* These Functions deal with how data is fetched and formatted throughout the game
*/

function show_char_to_char($user, $charlist) {
	$user->addtobuffer("~",CHAR_IN_ROOM_CONTAINER_OPEN);
	foreach($charlist as $char) {
		if($user == $char) { continue; }
		show_char_to_char_0($user,$char);	
	}
	$user->addtobuffer("~",CHAR_IN_ROOM_CONTAINER_CLOSE);
	return;
}

function show_char_to_char_0($user, $target) {
		if ($target->image) { $user->addtobuffer($target->image,CHAR_IN_ROOM_IMG); }
		$user->addtobuffer($target->name,CHAR_IN_ROOM_NAME);
}


?>